'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const collection = db.collection(event.t)
	// const res = await collection.limit(10).get()
	const res = await collection.where(event.data).limit(event.limit).get()
	return {
		status: 200,
		data:res,
		msg: '查询成功'
	}
};
